package com.twu.bibilioteca;

import junit.framework.TestCase;
import org.junit.Test;

import static junit.framework.Assert.assertEquals;

/**
 * Created by IntelliJ IDEA.
 * User: dixithk
 * Date: 6/20/14
 * Time: 1:02 PM
 * To change this template use File | Settings | File Templates.
 */
public class ListAllMoviesTest {

    UserInterfaceApp ui = new UserInterfaceApp() ;
    Library lib = new Library();
    ListAllMovies listAllMovies =new ListAllMovies(ui , lib);

    @Test
    public void ShouldCheckForListedBooksResult()
    {


        assertEquals(new Result("Listed Movies\n", true),listAllMovies.action());

    }

    @Test
    public  void ShouldCheckJobOfClass()
    {

        assertEquals("LIst of Movies", listAllMovies.getName())    ;

    }

}
